Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asn1js

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1js

asn1js is a pure JavaScript library implementing this standard. ASN.1 is the basis of all X.509 related data structures and numerous other protocols used on the web

  • 2.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.2M
increased by0.12%
Maintainers
2
Weekly downloads
 
Created

What is asn1js?

asn1js is an npm package that provides tools for parsing and manipulating ASN.1 (Abstract Syntax Notation One) data. ASN.1 is a standard and notation that is used in telecommunications and computer networking for representing, encoding, transmitting, and decoding data.

What are asn1js's main functionalities?

Parsing ASN.1 encoded data

This feature allows you to parse ASN.1 encoded data. The code sample demonstrates how to use asn1js to parse a buffer containing ASN.1 encoded data.

const asn1js = require('asn1js');
const ArrayBuffer = require('pvutils').ArrayBuffer;
const buffer = new ArrayBuffer( /* some ASN.1 encoded buffer */ );
const asn1 = asn1js.fromBER(buffer);
console.log(asn1.result);

Creating ASN.1 structures

This feature enables the creation of ASN.1 structures such as integers. The code sample shows how to create an ASN.1 Integer object.

const asn1js = require('asn1js');
const Integer = asn1js.Integer;
const asn1Integer = new Integer({ value: 123 });
console.log(asn1Integer);

Other packages similar to asn1js

Keywords

FAQs

Package last updated on 26 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc